package www.openteam.com.contract.policy;

import java.util.List;

import www.openteam.com.bean.ApprovalStatu;
import www.openteam.com.bean.PayableApproval;

/**
 * Created by hyd on 2017/1/15.
 */

public class PayableApprovalContract {

    public interface PayableApprovalView {
        //    queryPayableApproval(@Query("vendno")
        // String vendno, @Query("startDate") long startDate,
        // @Query("endDate") long endDate, @Query("pageSize") int PageSize);

        String getVendno();

        long getStartTime();

        long getEndTime();

        String getStype();

        String getMoreCom();

        int getOrderState();

        void queryPASuccess(List<PayableApproval.DataEntity> data);

        void queryPAFail(String failMsg);

        void approvalPASuccess(ApprovalStatu aprovalStatu);

        void approvalPAFail(String failMsg);

        void unApprovalPASuccess(ApprovalStatu aprovalStatu);

        void unApprovalPAFail(String failMsg);
    }

    public interface PayableApprovalPresenter {

        void queryPayableApproval(String vendno, long startTime, long endTime, int orderStatus,
                                  String stype, String moreCom, int PageSize);

        void unapprovalStatu(int id);

        void approvalStatu(int id);
    }

}
